package com.onlineMIS.ORM.entity.headQ.barcodeGentor;

import java.util.Date;
import java.util.List;

public class Menu {
	
	private int id;
	private String menuName;
	private String menuPath;
	private String menuType;
	private String menuDescribe;
	private String menuSign;
	private Integer status;
	private String statusS;
	private int sort;
	private Integer parentId;
	private String createBy;
	private Date createTime;
	private String createTimes;
	private String updateBy;
	private Date updateTime;
	private String updateTimes;
	private Integer isDelete;
	private int isHidden;
	private String isHiddenS;
	private List<Menu> children;
	
	
	public static String MENY_TYPE_MENU = "M";//菜单
	public static String MENY_TYPE_CATELOGUE = "C";//目录
	public static String MENY_TYPE_BUTTON = "B";//按钮
	
	public static Integer IS_NOT_DELETE = 0;//未删除
	public static Integer IS_DELETE = 1;//删除
	
	public static Integer STATUS_NORMAL = 0;//正常
	public static Integer STATUS_DEACTIVATE = 1;//停用
	
	
	public static Integer HIDDEN_TRUE = 1;//隐藏
	public static Integer HIDDEN_FALSE = 0;//不隐藏

	public List<Menu> getChildren() {
		return children;
	}
	public void setChildren(List<Menu> children) {
		this.children = children;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public String getMenuPath() {
		return menuPath;
	}
	public void setMenuPath(String menuPath) {
		this.menuPath = menuPath;
	}
	public String getMenuType() {
		return menuType;
	}
	public void setMenuType(String menuType) {
		this.menuType = menuType;
	}

	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Integer getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public String getUpdateBy() {
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}
	public String getCreateTimes() {
		return createTimes;
	}
	public void setCreateTimes(String createTimes) {
		this.createTimes = createTimes;
	}
	public String getUpdateTimes() {
		return updateTimes;
	}
	public void setUpdateTimes(String updateTimes) {
		this.updateTimes = updateTimes;
	}
	public String getMenuDescribe() {
		return menuDescribe;
	}
	public void setMenuDescribe(String menuDescribe) {
		this.menuDescribe = menuDescribe;
	}
	public String getStatusS() {
		return statusS;
	}
	public void setStatusS(String statusS) {
		this.statusS = statusS;
	}		
	public String getMenuSign() {
		return menuSign;
	}
	public void setMenuSign(String menuSign) {
		this.menuSign = menuSign;
	}	
	public int getIsHidden() {
		return isHidden;
	}
	public void setIsHidden(int isHidden) {
		this.isHidden = isHidden;
	}
	
		
	public String getIsHiddenS() {
		return isHiddenS;
	}
	public void setIsHiddenS(String isHiddenS) {
		this.isHiddenS = isHiddenS;
	}
	public void init() {
		if (this.status.equals(Menu.STATUS_NORMAL) ) {
			this.statusS = "正常";
		}else if (this.status.equals(Menu.STATUS_DEACTIVATE) ){
			this.statusS = "停用";
		}else {
			this.statusS = "其他";
		}
		
		if (this.isHidden == Menu.HIDDEN_FALSE) {
			this.isHiddenS = "否";
		}else if(this.isHidden == Menu.HIDDEN_TRUE) {
			this.isHiddenS = "是";
		}
	}
		
}
